package com.tmjavabasics.basics;

import java.util.Calendar;
import java.util.Date;

public class Basics {

	public void doSomething() {
		System.out.println("Do some basics ...");
		
		System.out.println(String.format("Current date %tT", (new Date())));
		
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(new Date());
		
		System.out.println(String.format("Current date %tT", calendar));
		calendar.add(Calendar.MINUTE, 10);
		System.out.println(String.format("Current date %tT", calendar));
	}
}
